import request from '@/utils/request'

// 查询日工资列表
export function listWagesday(query) {
  return request({
    url: '/sl/wagesday/list',
    method: 'get',
    params: query
  })
}

// 条件查询日工资列表
export function listQueryWagesday(query) {
  return request({
    url: '/sl/wagesday/querylist',
    method: 'get',
    params: query
  })
}

// 查询日工资详细
export function getWagesday(wagesDayId) {
  return request({
    url: '/sl/wagesday/' + wagesDayId,
    method: 'get'
  })
}

// 新增日工资
export function addWagesday(data) {
  return request({
    url: '/sl/wagesday',
    method: 'post',
    data: data
  })
}

// 修改日工资
export function updateWagesday(data) {
  return request({
    url: '/sl/wagesday',
    method: 'put',
    data: data
  })
}

// 删除日工资
export function delWagesday(wagesDayId) {
  return request({
    url: '/sl/wagesday/' + wagesDayId,
    method: 'delete'
  })
}

// 查询计件日工资列表
export function listWagesdayByPiece(query) {
  return request({
    url: '/sl/wagesday/plist',
    method: 'get',
    params: query
  })
}



// 查询系数日工资列表
export function listWagesdayByCoefficient(query) {
  return request({
    url: '/sl/wagesday/clist',
    method: 'get',
    params: query
  })
}

// 查询零工日工资列表
export function listWagesdayByOddjob(query) {
  return request({
    url: '/sl/wagesday/olist',
    method: 'get',
    params: query
  })
}


